STEP 12: How many words are there in our list? Let's find out and add that number to password!

  • In LOGIC from add Add Value OUTSIDE the loop. It should not be indented!
  • Change my_var to password and 1 to str(len(purpose_words_list)). This counts the words in purpose_words_list, casts the number to a string, and concatenates the value to the end of password!
  • Add Update Display. Change the variable argument to password to see the new changes.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)